import 'package:get/get.dart';
import 'package:intl/intl.dart';

class SuperControllerPageController extends SuperController {
  //TODO: Implement SuperControllerPageController

  final lifeStr = "".obs;

  @override
  void onInit() {
    super.onInit();
    lifeStr.value = "${lifeStr.value}\n${DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now())}-----> onInit";
    print("lifecyle = -----> onInit");
  }

  @override
  void onReady() {
    super.onReady();
    lifeStr.value = "${lifeStr.value}\n${DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now())}-----> onReady";
    print("lifecyle = -----> onReady");
  }

  @override
  void onClose() {
    super.onClose();
    lifeStr.value = "${lifeStr.value}\n${DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now())}-----> onClose";
    print("lifecyle = -----> onClose");
  }

  @override
  void onDetached() {
    lifeStr.value = "${lifeStr.value}\n${DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now())}-----> onDetached";
    print("lifecyle = -----> onDetached");
  }

  @override
  void onHidden() {
    lifeStr.value = "${lifeStr.value}\n${DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now())}-----> onHidden";
    print("lifecyle = -----> onHidden");
  }

  @override
  void onInactive() {
    lifeStr.value = "${lifeStr.value}\n${DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now())}-----> onInactive";
    print("lifecyle = -----> onInactive");
  }

  @override
  void onPaused() {
    lifeStr.value = "${lifeStr.value}\n${DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now())}-----> onPaused";
    print("lifecyle = -----> onPaused");
  }

  @override
  void onResumed() {
    lifeStr.value = "${lifeStr.value}\n${DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now())}-----> onResumed";
    print("lifecyle = -----> onResumed");
  }

}
